package com.ddone.gmall.mock;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @author ddone
 * @date 2024/5/26-18:54
 */
@MapperScan("com.ddone.gmall.mock.mapper")
@SpringBootApplication
public class MockDbApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(MockDbApplication.class, args);

        MockTask mockTask = context.getBean(MockTask.class);

        mockTask.mainTask();


    }
}
